import request from "@/config/axios";
//创建字典
export function addDict(data: any) {
  return request.post({
    url: "/createArticleType",
    data,
  });
}
//查询全部字典
export function getDictList(data: any) {
  return request.post({
    url: "/getPageDict",
    data,
  });
}
//删除字典
export function deleteDict(data: any) {
  return request.post({
    url: "/deleteDict",
    data,
  });
}
//编辑字典
export function editDict(data: any) {
  return request.post({
    url: "/updateDict",
    data,
  });
}
//查询字典
export function getDict(data: any) {
  return request.post({
    url: "/getDict",
    data,
  }); 
}
